﻿<UserControl x:Class="TfsGiggle.Search.TfsGiggleSearchControl"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"
            DataContext="{Binding RelativeSource={RelativeSource Self}}"
            mc:Ignorable="d">
    <ListView Name="listView1" Margin="2,5,1,1" ItemsSource="{Binding TfsGiggleFiles, diagnostics:PresentationTraceSources.TraceLevel=High}">
        <ListView.ItemContainerStyle>
            <Style TargetType="{x:Type ListViewItem}">
                <EventSetter Event="MouseDoubleClick" Handler="ListViewHandleDoubleClick"/>
            </Style>
        </ListView.ItemContainerStyle>
        <ListView.View>
            <GridView>
                <GridViewColumn Header="FileName" DisplayMemberBinding="{Binding Name}" Width="Auto" />
            </GridView>
        </ListView.View>
    </ListView>
</UserControl>